package com.github.bluesbruce.h2.service.dao;

import com.github.bluesbruce.h2.service.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * H2 demo Dao类
 *
 * @author BBF
 */
@Mapper
public interface UserDao {
    UserEntity getOne(@Param("id") Integer id);

    List<UserEntity> getList(@Param("name") String name, @Param("password") String password);
}
